package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 shop_goods
 * 
 * @author ruoyi
 * @date 2025-10-20
 */
public class ShopGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一ID */
    private Long goodsId;

    /** 关联店铺ID */
    @Excel(name = "关联店铺ID")
    private Long storeId;

    /** 商品分类（如"汉堡"） */
    @Excel(name = "商品分类", readConverterExp = "如='汉堡'")
    private String categoryName;

    /** 分类排序（数字越小越靠前） */
    @Excel(name = "分类排序", readConverterExp = "数=字越小越靠前")
    private Long categorySort;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String goodsImg;

    /** 售卖单价（元） */
    @Excel(name = "售卖单价", readConverterExp = "元=")
    private BigDecimal price;

    /** 原价（元） */
    @Excel(name = "原价", readConverterExp = "元=")
    private BigDecimal originalPrice;

    /** 已售数量 */
    @Excel(name = "已售数量")
    private Long salesNum;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    /** 是否上架（0-下架，1-上架） */
    @Excel(name = "是否上架", readConverterExp = "0=-下架，1-上架")
    private Integer isOnSale;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setCategorySort(Long categorySort) 
    {
        this.categorySort = categorySort;
    }

    public Long getCategorySort() 
    {
        return categorySort;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsImg(String goodsImg) 
    {
        this.goodsImg = goodsImg;
    }

    public String getGoodsImg() 
    {
        return goodsImg;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }

    public void setSalesNum(Long salesNum) 
    {
        this.salesNum = salesNum;
    }

    public Long getSalesNum() 
    {
        return salesNum;
    }

    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setIsOnSale(Integer isOnSale) 
    {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale() 
    {
        return isOnSale;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("storeId", getStoreId())
            .append("categoryName", getCategoryName())
            .append("categorySort", getCategorySort())
            .append("goodsName", getGoodsName())
            .append("goodsImg", getGoodsImg())
            .append("price", getPrice())
            .append("originalPrice", getOriginalPrice())
            .append("salesNum", getSalesNum())
            .append("goodsDesc", getGoodsDesc())
            .append("isOnSale", getIsOnSale())
            .toString();
    }
}
